package com.registration.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

public class RoleBean {
    //权限角色
    private Integer role_id;//	角色ID
    private String role_name;//	角色名称
    private String description;//	描述
    private Integer status;//	状态

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date create_time;//	创建时间
    private Date update_time;//	更新时间

    private List<Integer> selectedMenuList;

    private List<Integer> batchDeleteList;

    public List<Integer> getSelectedMenuList() {
        return selectedMenuList;
    }

    public void setSelectedMenuList(List<Integer> selectedMenuList) {
        this.selectedMenuList = selectedMenuList;
    }

    public List<Integer> getBatchDeleteList() {
        return batchDeleteList;
    }

    public void setBatchDeleteList(List<Integer> batchDeleteList) {
        this.batchDeleteList = batchDeleteList;
    }

    @Override
    public String toString() {
        return "RoleBean{" +
                "role_id=" + role_id +
                ", role_name='" + role_name + '\'' +
                ", description='" + description + '\'' +
                ", status=" + status +
                ", create_time=" + create_time +
                ", update_time=" + update_time +
                ", selectedMenuList=" + selectedMenuList +
                ", batchDeleteList=" + batchDeleteList +
                '}';
    }

    public RoleBean() {
    }
    public RoleBean(Integer role_id, String role_name, String description, Integer status, Date create_time, Date update_time) {
        this.role_id = role_id;
        this.role_name = role_name;
        this.description = description;
        this.status = status;
        this.create_time = create_time;
        this.update_time = update_time;
    }

    public Integer getRole_id() {
        return role_id;
    }

    public void setRole_id(Integer role_id) {
        this.role_id = role_id;
    }

    public String getRole_name() {
        return role_name;
    }

    public void setRole_name(String role_name) {
        this.role_name = role_name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }
}
